package com.hzf.material.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class MaterialGoodsModelPinExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public MaterialGoodsModelPinExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPinIdIsNull() {
            addCriterion("pin_id is null");
            return (Criteria) this;
        }

        public Criteria andPinIdIsNotNull() {
            addCriterion("pin_id is not null");
            return (Criteria) this;
        }

        public Criteria andPinIdEqualTo(Integer value) {
            addCriterion("pin_id =", value, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdNotEqualTo(Integer value) {
            addCriterion("pin_id <>", value, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdGreaterThan(Integer value) {
            addCriterion("pin_id >", value, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pin_id >=", value, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdLessThan(Integer value) {
            addCriterion("pin_id <", value, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdLessThanOrEqualTo(Integer value) {
            addCriterion("pin_id <=", value, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdIn(List<Integer> values) {
            addCriterion("pin_id in", values, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdNotIn(List<Integer> values) {
            addCriterion("pin_id not in", values, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdBetween(Integer value1, Integer value2) {
            addCriterion("pin_id between", value1, value2, "pinId");
            return (Criteria) this;
        }

        public Criteria andPinIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pin_id not between", value1, value2, "pinId");
            return (Criteria) this;
        }

        public Criteria andModelIdIsNull() {
            addCriterion("model_id is null");
            return (Criteria) this;
        }

        public Criteria andModelIdIsNotNull() {
            addCriterion("model_id is not null");
            return (Criteria) this;
        }

        public Criteria andModelIdEqualTo(Integer value) {
            addCriterion("model_id =", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdNotEqualTo(Integer value) {
            addCriterion("model_id <>", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdGreaterThan(Integer value) {
            addCriterion("model_id >", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("model_id >=", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdLessThan(Integer value) {
            addCriterion("model_id <", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdLessThanOrEqualTo(Integer value) {
            addCriterion("model_id <=", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdIn(List<Integer> values) {
            addCriterion("model_id in", values, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdNotIn(List<Integer> values) {
            addCriterion("model_id not in", values, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdBetween(Integer value1, Integer value2) {
            addCriterion("model_id between", value1, value2, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("model_id not between", value1, value2, "modelId");
            return (Criteria) this;
        }

        public Criteria andPinNumsIsNull() {
            addCriterion("pin_nums is null");
            return (Criteria) this;
        }

        public Criteria andPinNumsIsNotNull() {
            addCriterion("pin_nums is not null");
            return (Criteria) this;
        }

        public Criteria andPinNumsEqualTo(Integer value) {
            addCriterion("pin_nums =", value, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsNotEqualTo(Integer value) {
            addCriterion("pin_nums <>", value, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsGreaterThan(Integer value) {
            addCriterion("pin_nums >", value, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsGreaterThanOrEqualTo(Integer value) {
            addCriterion("pin_nums >=", value, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsLessThan(Integer value) {
            addCriterion("pin_nums <", value, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsLessThanOrEqualTo(Integer value) {
            addCriterion("pin_nums <=", value, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsIn(List<Integer> values) {
            addCriterion("pin_nums in", values, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsNotIn(List<Integer> values) {
            addCriterion("pin_nums not in", values, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsBetween(Integer value1, Integer value2) {
            addCriterion("pin_nums between", value1, value2, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinNumsNotBetween(Integer value1, Integer value2) {
            addCriterion("pin_nums not between", value1, value2, "pinNums");
            return (Criteria) this;
        }

        public Criteria andPinTimeIsNull() {
            addCriterion("pin_time is null");
            return (Criteria) this;
        }

        public Criteria andPinTimeIsNotNull() {
            addCriterion("pin_time is not null");
            return (Criteria) this;
        }

        public Criteria andPinTimeEqualTo(Integer value) {
            addCriterion("pin_time =", value, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeNotEqualTo(Integer value) {
            addCriterion("pin_time <>", value, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeGreaterThan(Integer value) {
            addCriterion("pin_time >", value, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pin_time >=", value, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeLessThan(Integer value) {
            addCriterion("pin_time <", value, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeLessThanOrEqualTo(Integer value) {
            addCriterion("pin_time <=", value, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeIn(List<Integer> values) {
            addCriterion("pin_time in", values, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeNotIn(List<Integer> values) {
            addCriterion("pin_time not in", values, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeBetween(Integer value1, Integer value2) {
            addCriterion("pin_time between", value1, value2, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("pin_time not between", value1, value2, "pinTime");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendIsNull() {
            addCriterion("pin_free_send is null");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendIsNotNull() {
            addCriterion("pin_free_send is not null");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendEqualTo(Integer value) {
            addCriterion("pin_free_send =", value, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendNotEqualTo(Integer value) {
            addCriterion("pin_free_send <>", value, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendGreaterThan(Integer value) {
            addCriterion("pin_free_send >", value, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendGreaterThanOrEqualTo(Integer value) {
            addCriterion("pin_free_send >=", value, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendLessThan(Integer value) {
            addCriterion("pin_free_send <", value, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendLessThanOrEqualTo(Integer value) {
            addCriterion("pin_free_send <=", value, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendIn(List<Integer> values) {
            addCriterion("pin_free_send in", values, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendNotIn(List<Integer> values) {
            addCriterion("pin_free_send not in", values, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendBetween(Integer value1, Integer value2) {
            addCriterion("pin_free_send between", value1, value2, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinFreeSendNotBetween(Integer value1, Integer value2) {
            addCriterion("pin_free_send not between", value1, value2, "pinFreeSend");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceIsNull() {
            addCriterion("pin_send_price is null");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceIsNotNull() {
            addCriterion("pin_send_price is not null");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceEqualTo(BigDecimal value) {
            addCriterion("pin_send_price =", value, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceNotEqualTo(BigDecimal value) {
            addCriterion("pin_send_price <>", value, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceGreaterThan(BigDecimal value) {
            addCriterion("pin_send_price >", value, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pin_send_price >=", value, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceLessThan(BigDecimal value) {
            addCriterion("pin_send_price <", value, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pin_send_price <=", value, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceIn(List<BigDecimal> values) {
            addCriterion("pin_send_price in", values, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceNotIn(List<BigDecimal> values) {
            addCriterion("pin_send_price not in", values, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pin_send_price between", value1, value2, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinSendPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pin_send_price not between", value1, value2, "pinSendPrice");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallIsNull() {
            addCriterion("pin_has_install is null");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallIsNotNull() {
            addCriterion("pin_has_install is not null");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallEqualTo(Integer value) {
            addCriterion("pin_has_install =", value, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallNotEqualTo(Integer value) {
            addCriterion("pin_has_install <>", value, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallGreaterThan(Integer value) {
            addCriterion("pin_has_install >", value, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallGreaterThanOrEqualTo(Integer value) {
            addCriterion("pin_has_install >=", value, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallLessThan(Integer value) {
            addCriterion("pin_has_install <", value, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallLessThanOrEqualTo(Integer value) {
            addCriterion("pin_has_install <=", value, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallIn(List<Integer> values) {
            addCriterion("pin_has_install in", values, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallNotIn(List<Integer> values) {
            addCriterion("pin_has_install not in", values, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallBetween(Integer value1, Integer value2) {
            addCriterion("pin_has_install between", value1, value2, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinHasInstallNotBetween(Integer value1, Integer value2) {
            addCriterion("pin_has_install not between", value1, value2, "pinHasInstall");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceIsNull() {
            addCriterion("pin_install_price is null");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceIsNotNull() {
            addCriterion("pin_install_price is not null");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceEqualTo(BigDecimal value) {
            addCriterion("pin_install_price =", value, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceNotEqualTo(BigDecimal value) {
            addCriterion("pin_install_price <>", value, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceGreaterThan(BigDecimal value) {
            addCriterion("pin_install_price >", value, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pin_install_price >=", value, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceLessThan(BigDecimal value) {
            addCriterion("pin_install_price <", value, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pin_install_price <=", value, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceIn(List<BigDecimal> values) {
            addCriterion("pin_install_price in", values, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceNotIn(List<BigDecimal> values) {
            addCriterion("pin_install_price not in", values, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pin_install_price between", value1, value2, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinInstallPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pin_install_price not between", value1, value2, "pinInstallPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceIsNull() {
            addCriterion("pin_price is null");
            return (Criteria) this;
        }

        public Criteria andPinPriceIsNotNull() {
            addCriterion("pin_price is not null");
            return (Criteria) this;
        }

        public Criteria andPinPriceEqualTo(BigDecimal value) {
            addCriterion("pin_price =", value, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceNotEqualTo(BigDecimal value) {
            addCriterion("pin_price <>", value, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceGreaterThan(BigDecimal value) {
            addCriterion("pin_price >", value, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pin_price >=", value, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceLessThan(BigDecimal value) {
            addCriterion("pin_price <", value, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pin_price <=", value, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceIn(List<BigDecimal> values) {
            addCriterion("pin_price in", values, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceNotIn(List<BigDecimal> values) {
            addCriterion("pin_price not in", values, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pin_price between", value1, value2, "pinPrice");
            return (Criteria) this;
        }

        public Criteria andPinPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pin_price not between", value1, value2, "pinPrice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}